<div class='view ui-corner-all'>
	<b><?php echo CHtml::encode($data->getAttributeLabel('cname'));?>:</b><br />
	<p><?php echo CHtml::link($data->cname,array('view','id'=>$data->id))?>	</p>
	<br />
	<b><?php echo CHtml::encode($data->getAttributeLabel('address'));?>:</b><br />
	<?php foreach($data->address() as $address):?>
	<p>
		(<?php echo CHtml::encode($address->type);?>)<br />
		<?php echo CHtml::encode($address->address)?>
	</p>
	<?php endforeach; ?>
	<br />
	<b><?php echo CHtml::encode($data->getAttributeLabel('email'));?>:</b><br />
	<?php foreach($data->email() as $item):?>
		(<?php echo CHtml::encode($item->type);?>) <?php echo CHtml::encode($item->ref)?> <br />
	<?php endforeach; ?>
</div>